package com.base.vistter.iframe.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@TableName(value = "inverter_devices")
public class InverterDevices extends BaseEntity {

    /**
     * 设备序列号
     */
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private String no;

    /**
     * 设备编号
     */
    private String code;

    /**
     * 装机容量
     */
    private Float capacity;

    /**
     * 出厂日期
     */
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date productionDate;

    /**
     * 有效期
     */
    private Integer shelfLife;

    /**
     * 所属电站
     */
    private Integer inverterStationId;

    /**
     * 状态
     */
    private Integer status;

    @TableField(exist = false)
    private Float dp;

    @TableField(exist = false)
    private Float p;

}
